<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.infodms.dms.common.Constant"%>
<%@page import="com.infodms.dms.po.TtAsWrModelGroupPO"%>
<%
String contextPath = request.getContextPath();
TtAsWrModelGroupPO po = (TtAsWrModelGroupPO)request.getAttribute("MODELGROUP"); //取车型组po
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="${contextPath}/common/jsp_head_new.jsp" />
<title>车型组维护</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<div class="navigation">
  <img src="<%=contextPath%>/img/nav.gif" />&nbsp;当前位置： 售后服务管理&gt;索赔基本数据&gt;车型组维护</div>
<form name='fm' id='fm'>
<input type="hidden" name="WRGROUP_ID" id="WRGROUP_ID" value="<%=po.getWrgroupId()==null?"":po.getWrgroupId()%>"/>
<table class="table_add">
 <tr>
 	<td class="table_add_2Col_label_5Letter">车型组类型：</td>
 	<td>
 	    <script type="text/javascript">
	              genSelBoxExp("WRGROUP_TYPE",<%=Constant.WR_MODEL_GROUP_TYPE%>,"<%=po.getWrgroupType()%>",false,"short_sel","","true",'');
	    </script>
    </td>
 </tr>
 <tr>
 	<td class="table_add_2Col_label_5Letter">车型组代码：</td>
 	<td><%=po.getWrgroupCode()==null?"":po.getWrgroupCode()%></td>
 </tr> 
 <tr>
 	<td class="table_add_2Col_label_5Letter">车型组名称：</td>
 	<td>
 		 <input type="text" name="WRGROUP_NAME" id="WRGROUP_NAME" class="middle_txt" datatype="0,is_null,20" value="<%=po.getWrgroupName()==null?"":po.getWrgroupName()%>"/>
 	</td>
 </tr>
  <tr>
 	<td class="table_add_2Col_label_5Letter">保养费用：</td>
 	<td>
 		 <input type="text" name="FREE" id="FREE" class="middle_txt" datatype="0,is_null,20" value="<%=po.getFree()==null?"":po.getFree()%>"/>
 	</td>
 </tr>
</table>

<table class="table_edit" >
 <tr>
 	<td colspan="2" align="center">
 		<input class="normal_btn" type="button" name="ok" id="commitBtn" value="修改" onclick="checkFormUpdate();"/> 
 		<input class="normal_btn" name="back" type="button" onclick="JavaScript:history.back();" value="返回"/>
 	</td>
 </tr>
</table>

</form>
<script>
	function checkForm(){
			disableBtn($("commitBtn"));
			makeFormCall('<%=contextPath%>/claim/basicData/ClaimModelMain/claimModelUpdate.json',showResult,'fm');			
	}
	function goBack(){
		history.go(-1);
	}
	function showResult(json){
		if(json.ACTION_RESULT == '1'){
			window.location.href = "<%=contextPath%>/claim/basicData/ClaimModelMain/claimModelInit.do";
		}
	}
	function checkFormUpdate(){
		if(!submitForm('fm')) {
			return false;
		}			
		MyConfirm("是否确认修改?",checkForm);
	}
</script>
</body>
</html>